package io;

import java.io.*;

public class WriteStringDemo3 {
    public static void main(String[] args) throws FileNotFoundException, FileNotFoundException, UnsupportedEncodingException {
        FileOutputStream out = new FileOutputStream("note.txt");
        OutputStreamWriter osw = new OutputStreamWriter(out, "UTF-8");
        PrintWriter pw = new PrintWriter(osw);
        pw.println("hello world");
        pw.println("hello world");
        System.out.println("输出完毕");
        pw.close();



    }
}
